  <!-- <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">  -->

  <!--CKeditor start
  <script src="assets/ckeditor/ckeditor.js"></script> 
  <-CKeditor end-->
  <!--
  <script src="assets/bootstrap-star-rating-master/js/star-rating.min.js"></script> 
  <link rel="stylesheet" type="text/css" href="assets/bootstrap-star-rating-master/css/star-rating.min.css"/>
  -->
  
  <style type= "text/css"> 
  ui  li{ 
    margin-left: 6px;
    margin-right: 6px;
    font-size: 20px;
  } 
  li{
 list-style-type:none;
}
  .tl .avatarbox {
      position: relative;
      margin-left: 0px;
      padding: 0px;
  }
  .avatarbox {
      float: left;
      border: 1px solid #CCC;
      padding: 1px;
      margin-left: 8px;
      margin-right: 8px;
  }

  td ,th{
     padding: 10px;
  }

  td,th{
      border-bottom-color: #E5E5E5;
  }
  td, th{
      border-bottom: 1px solid #CCC;
  }

  th {
      text-align: left;
  }
  .y {
      float: right;
  }
  .comment-text{
    font-size: 20px;
  }

  .pic{
   display: block; 
   float: left;
   width:70px;
   height:70px;
   border-radius: 50%;
   margin-top: 2px;
  }
  </style>
  <style type="text/css">
  #services .pack-service {
      position: relative;
      min-height: 1px;
      float: left;
      width: 32%;
      /*margin: 1% 1% 0px 0px;*/
      /*padding: 2%;*/
      cursor: pointer;
      transition: all 0.5s ease 0s;
  }
  #services .service-icon {
      width: 50px;
      margin: 0px auto;
  }

  #services .pack-service {
      cursor: pointer;
  }

  #services .pack-service .service-icon i {
      border: 3px solid #3B5998;
      color: #3B5998;
      background: none repeat scroll 0% 0% #FFF;
  }
  #services .service-icon i {
      display: block;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 30px;
      line-height: 40px;
      text-align: center;
      transition: all 0.5s ease 0s;
  }

  #services .pack-service .service-icon i:hover {
      border: 3px solid #3B5998;
      color: white;
      background: none repeat scroll 0% 0% #3B5998;
  }

  .fa {
      display: inline-block;
      font-family: FontAwesome;
      font-style: normal;
      font-weight: normal;
      line-height: 1;
  }

  a:hover {
  text-decoration: none;
  color: #51aded;
  }

  #aa a{
    color:#38485a;
    text-decoration: none;
  }

  a{
    color:#38485a;
  }

  .comment:hover{
     background:#eeeeee;

  }
  a span:hover{
     color:white;
  }
  em{
   font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
   font-style: normal;
   font-weight: normal;
  }
  </style>
  <div class="incident-list" ng-controller="knowledgeForumCtrl">
    <section id="page-title_1">
      <div class="row" > 
        <div class="col-md-4 pack-service pull-right" style="margin-top:15px;margin-bottom:15px"> 
                  <div class="input-group " >
                    <span class="input-group-addon" id="searchSpan" style="border:none;background: #fff;background: rgba(0,0,0,.05);" ng-click="searchSolution(searchInput)">
                      <i class="fa fa-search"></i>
                    </span> 
                   <input type="text" ng-model="searchInput" placeholder="搜索..." class="form-control no-padding-hr" style="border:none;background: #fff;background: rgba(0,0,0,.05);">
                 </div>
              </div>
      </div>
    </section>
      <div class="row" id="services">
              <div class="col-md-2 pack-service" style="width:200px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-detail" >
                         <h6 ng-model="showBtn" ng-click="showBtnClk()" id="showBtn">{{btnName}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:200px">
                  <div  style="text-align:center;width:100px;">
                      <div class="service-detail">
                         <h6>今日浏览数:{{todayHits}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:200px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-detail" >
                          <h6>昨日浏览数:{{lastHits}}</h6>      
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:200px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-detail">
                          <h6>知识库数量:{{num}}</h6>
                      </div>
                  </div>
              </div>
      </div>
        <div class="list-container-header">
           <!--  <a><label style="font-size:25px;"><i class="fa fa-flask"></i> 知识库首页</label></a> -->
            <div class="row" id="services">
              <div class="col-md-2 pack-service" style="width:220px;height:90px;">
                  <a><label style="font-size:25px;"><i class="fa fa-flask"></i> 知识库首页</label></a> 
              </div>
            
              <div class="col-md-2 pack-service" style="width:100px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-icon" ng-click="showBtnClk()"><i class="fa fa-facebook" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" >
                         <h6 ng-model="showBtn"  id="showBtn">{{btnName}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:100px;height:90px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-icon"><i class="fa fa-tag" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail">
                         <h6>今日浏览数:{{todayHits}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:100px;height:90px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-icon"><i class="fa fa-cogs" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" >
                          <h6>昨日浏览数:{{lastHits}}</h6>      
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service" style="width:100px;height:90px;">
                  <div class="service" style="text-align:center;width:100px;">
                      <div class="service-icon"><i class="fa fa-arrows-alt" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail">
                          <h6>知识库数量:{{num}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-2 pack-service pull-right">
                  <div class="input-group no-margin">
                    <span class="input-group-addon" id="searchSpan" style="border:none;background: #fff;background: rgba(0,0,0,.05);" ng-click="searchSolution(searchInput)">
                      <i class="fa fa-search"></i>
                    </span> 
                   <input type="text" ng-model="searchInput" placeholder="搜索..." class="form-control no-padding-hr" style="border:none;background: #fff;background: rgba(0,0,0,.05);">
                 </div>
              </div>
           </div> 
     </div>

     <div class="list-controls clearfix" > <!-- width="400" -->
     
        <div class="col-xs-12 col-sm-6 col-md-8">
 
         <div collapse="!isCollapsed" >
             <div class="row"> 
                  <div  class="bg-primary padding-sm valign-middle">
                      <div id="hero-graph" class="graph" style="height: 230px;"></div>
                  </div>
          </div>  
        </div>
      <!--知识库列表 start -->
       <div class="row"> 
          <div class="panel panel-default" id="dashboard-recent">
            <div class="panel-heading"><!-- panel-title-icon fa fa-fire text-danger --> 
              <span class="panel-title" style="font-size:20px;"><i class="fa fa-th-list text-primary"></i><span style="white">知识库</span></span>
              <ul class="nav nav-tabs nav-tabs-xs">
                <li class="active">
                  <a  data-toggle="tab" ng-click="changeShowList('true');">最新帖</a>
                </li>
                <!-- <li>
                  <a  data-toggle="tab" style="color:white;" ng-click="changeShowList('false');">最热帖</a>
                </li> -->
              </ul>
            </div> <!-- / .panel-heading -->

            <div class="tab-content">
              
              <!--最新贴 start-->
              <div class=" panel-body tab-pane  fade active in"  id="dashboard-recent-comments" ng-show="showlist"> <!-- class="widget-comments panel-body tab-pane no-padding fade active in" -->
                <div class="panel-padding no-padding-vr" ys-waterfall  height="800px;" func="scroll">

                  <div ng-repeat="item in solutionBBS">
                    <div class="comment"> 

                     <img src="assets/images/avatar-1.jpg" alt="" class="comment-avatar" style="display: block; float: left;width:70px;height:70px;border-radius: 50%;  margin-top: 2px;"> 
                      
                      <div class="comment-body" style="color: #aaa;font-size: 16px;">   
                        <div class="comment-text" style="padding-top:10px;">
                             <a id="aa"  data-toggle="modal" data-target="#commentSolutions"   ng-click="findSolutionReviewByType('{{item.id}}');" style="font-weight: bold;">
                             {{item.title}}</a> 
                            <img src="assets/images/fj.gif" alt="attach_img" title="图片附件" align="absmiddle">

                            <span class="pull-right">  
                                  <button  class="btn btn-info btn-flat btn-rounded"><i class="fa fa-dot-circle-o"></i>&nbsp;&nbsp;{{item.hits}}</button>
                            </span>
                            <span class="pull-right"><p>{{item.content}}</p></span>
                        </div>
                        <div class="comment-by" style="padding-top:10px;">
                              <span class="pull-right">  
                                  <button class="btn btn-success btn-flat btn-rounded"><i class="fa fa-comments-o"></i>&nbsp;&nbsp;{{item.replies}}</button>
                              </span>
                                <em>
                                    <a>{{item.creationname}}</a>
                                </em>
                                <em>于 <span>{{item.creationTime}}</span> 发表 |
                                </em>
                                <em>最后回复:<span>{{item.lastReplyUser}}</span>于{{item.lastReplyTime}}评论
                                   <!--  <span title="2015-5-7 09:44">14&nbsp;秒前</span> </a> -->
                                </em>
                                <!-- <a href="http://bbs.xiaomi.cn/thread-11297151-1-1.html" target="_blank">置顶</a> -->
                        </div>
                        <div class="comment-actions"  style="padding-top:10px;padding-left:70px;">
                          <a data-toggle="modal" data-target="#commentboxbox" ng-click="commentSolution(item.id)"><i class="fa fa-pencil"></i>查看</a>
                          <!--  <span class="pull-right">   -->
                          <button class="btn btn-warning btn-flat btn-rounded"><i class="fa fa-flag-o"></i>&nbsp;{{item.scores}}</button> 
                          <!-- </span> -->
                        </div>
                      </div> <!-- / .comment-body -->
                    </div> <!-- / .comment -->
                </div><!--ng-repeat -->
              </div><!-- / .panel-padding-->
            </div> 
            <!--最新贴 end-->

          

              <!-- 最热帖 start 浏览数最多的 --><!-- class="widget-threads panel-body tab-pane no-padding fade" -->
              <!--<div  id="dashboard-recent-threads"  class="panel-body  no-padding "  ng-show="!showlist">
                <div class="panel-padding no-padding-vr">
                   <div ng-repeat="item in solutionBBS1">
                     <div class="thread">
                        <img src="assets/demo/avatars/2.jpg" alt="" class="thread-avatar" style="display: block; float: left;width:70px;height:70px;border-radius: 50%;  margin-top: 2px;">
                        <div class="thread-body">
                            <span class="thread-time">{{item.hits}}</span>
                            <a href="#" class="thread-title">{{item.title}}</a>
                              <div class="thread-info">{{item.creationTime}}<a href="#" title="">{{item.creationname}}</a>创建<a href="#" title=""></a>
                              </div>
                        </div> 
                     </div> 
                   </div>

                </div>
              </div>  -->
              <!--最热帖 end -->
             

            </div><!--/ .tab-content-->
          </div> <!-- / .panel -->
        </div> <!-- / .row-->
       <!--知识库列表 end --> 
     </div> 

   <div  class="col-xs-6 col-md-4" >
        <!--div class="row"  id="services">
          <!--  style="float:right;" class="col-md-4"-->
              <!-- <div class="title_content">
                  <div class="text_content">My Services 1</div> 
                  <div class="clear"></div>
              </div>  
              <div class="col-md-1 pack-service" style="width:70px;height:100px;">
                  <div class="service" >
                      <div class="service-icon" ng-click="showBtnClk()"><i class="fa fa-facebook" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" style="text-align:center">
                         <h6 ng-model="showBtn"  id="showBtn">{{btnName}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-1 pack-service" style="width:70px;height:100px;">
                  <div class="service" >
                      <div class="service-icon"><i class="fa fa-tag" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" style="text-align:center">
                         <h6>今日浏览数:{{todayHits}}</h6>
                      </div>
                  </div>
              </div>
              <div class="col-md-1 pack-service" style="width:70px;height:100px;">
                  <div class="service" >
                      <div class="service-icon"><i class="fa fa-cogs" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" style="text-align:center">
                          <h6>昨日浏览数:{{lastHits}}</h6>      
                      </div>
                  </div>
              </div>
              <div class="col-md-1 pack-service" style="width:70px;height:100px;">
                  <div class="service" >
                      <div class="service-icon"><i class="fa fa-arrows-alt" style="width:50px;height:50px;"></i></div>
                      <div class="service-detail" style="text-align:center">
                          <h6>知识库数量:{{num}}</h6>
                      </div>
                  </div>
              </div>
        </div-->  

   


       <div class="row">
        <!--排行榜  start-->
         <div class="col-sm-4 col-md-12">
            <div class="panel  panel-default  widget-support-tickets"   id="scoreRanking">
            <div class="panel-heading"  style="background-color:#51aded;">
              <span class="panel-title"   style="font-size: 20px; "><i class="fa fa-cloud-upload text-primary"></i>&nbsp;&nbsp;<span style="color:white;">评分排行榜</span></span>
              <div class="panel-heading-controls">
                <div class="panel-heading-text"><a><span>前15条</span></a></div>
              </div>
              
              <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" /> 
              <div class="stat-panel" style="background-color:#51aded;">
              <div class="stat-row">
                  <!-- Purple background, small padding   bg-pa-purple-->
                  <div class="stat-cell  padding-sm text-center">
                    <div class="text-xs" style="margin-bottom: 5px;"><span style="color:white;">分数图</span></div> 
                    <!--div class="stats-sparklines" id="stats-sparklines-3" style="width: 100%"><canvas style="display: inline-block; width: 330px; height: 45px; vertical-align: top;" width="330" height="45"></canvas></div-->
                    <span jq-sparkline ng-model="topscore" ng-if="topscore" type="line" width="80%" height="47px" line-color="#8e8e93" highlight-line-color="#c2c2c5" highlight-spot-color="#CE4641" max-spot-color="#5CB85C" min-spot-color="#D9534F" spot-radius="4" fill-color="transparent" resize="true"></span>
                  </div>
              </div>
             </div>
            </div> <!-- / .panel-heading -->
             
            <div class="panel-body tab-content-padding"> <!-- Panel padding, without vertical padding -->
              <div class="panel-padding no-padding-vr"> 
                <div ng-repeat="s in scoreRankings">  
                <div class="ticket">
                   <span class="label label-{{ clses[s.index].cls }}  ticket-label">{{s.scores}}</span>
                   <a ng-click="findSolutionReviewByType('{{s.id}}');" data-toggle="modal" data-target="#commentSolutions" title="" class="ticket-title" class="panel-title">{{s.title}}</a>
                  <span class="ticket-info">
                     创建人:<a href="#" title="">{{s.name}}</a>&nbsp;&nbsp;
                     日期:<span>[#{{s.createTime}}]</span>
                  </span>
                  <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" />
                </div> <!-- / .ticket -->
              </div>
             </div>
         </div><!-- /. panel-body-->
       </div>
      </div>
      <!--排行榜  end-->

    
      <!--热度排行榜 start-->
      <div class="col-sm-4 col-md-12">
          <div class="panel  widget-support-tickets" id="dashboard-support-tickets">
            <div class="panel-heading" style="background-color:#51aded;">
              <span class="panel-title" style="font-size: 20px;"><i class="panel-title-icon fa fa-bullhorn"></i><span style="color:white;">热度排行榜</span></span>
              <div class="panel-heading-controls">
                <div class="panel-heading-text"><a><span>前15条</span></a></div>
              </div>
              <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" /> 
               <div  id='commentRanking'>
                 <div class="stat-panel" style="background-color:#51aded;">
                 <div class="stat-row">
                  
                  <div class="stat-cell  padding-sm no-padding-t text-center">
                    <div class="text-xs" style="margin-bottom: 5px;"><span style="color:white;">热度图</span></div> 
                    <!--div id="stats-sparklines-2" class="stats-sparklines" style="width: 100%"></div-->
                    <span jq-sparkline ng-model="tophot" ng-if="tophot" type="bar" height="36px" zeroAxis="false" barSpacing="2px" bar-color="#ffffff"></span>
                  </div>
                </div> 
              </div> 
             </div> 
           </div> <!-- / .panel-heading -->
            <div class="panel-body tab-content-padding"> <!-- Panel padding, without vertical padding -->
              <div class="panel-padding no-padding-vr">
              <div ng-repeat="h in scoreRankings">  

                <div class="ticket">
                  <span class="label label-{{ clses[h.index].cls }} ticket-label">{{h.replies}}</span>
                  <a ng-click="findSolutionReviewByType('{{h.id}}');"  data-toggle="modal" data-target="#commentSolutions"  title="" class="ticket-title"  class="panel-title">{{h.title}}</a>
                  <span class="ticket-info">
                     创建人:<a href="#" title="">{{h.name}}</a>&nbsp;&nbsp; 
                     日期:<span>[#{{h.createTime}}]
                  </span>
                  <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" />
                </div> <!-- / .ticket -->
                
               </div><!-- ng-repeat -->
              </div>
             </div> <!-- / .panel-body -->
            </div> <!-- / .panel -->
            <div class="stat-row panel-success" ><!-- style="background-color:#FFC0CB" -->
                  <div class="stat-cell  padding-sm no-padding-t text-center">
                    <!--div id="stats-sparklines-2" class="stats-sparklines" style="width: 100%"></div-->
                    <span jq-sparkline ng-model="tophot" ng-if="tophot" type="bar" height="36px" zeroAxis="false" barSpacing="2px" bar-color="#ffffff"></span>
                  </div>
            </div> 
      </div><!--热度排行榜 end-->

     </div><!--排行榜row  end-->
    </div><!-- class="col-xs-6 col-md-4"-->
   </div><!-- / . class="list-controls clearfix"-->


    <div id="commentboxbox" class="modal fade modal-blur" tabindex="-1" role="dialog" style="display:none;">
           <div class="modal-dialog">
               <div class="modal-content panel-info" style="width:600px;" >
                    <div class="modal-header panel-heading">
                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                         <h4 class="modal-title"><i class="fa fa-sun-o"></i>评论知识库</h4>
                    </div>
                    <div class="modal-body">               
                             <div class="panel"> 
                               <div class="well well-lg"> <br />
                                <div class="row form-group" ng-show="showCommentScore">
                                    <label class="col-md-2 control-label" for="content">评分:</label>
                                    <div class="col-md-8" style="z-indx:1px;line-height:30px;;">
                                          <input id="input-2bb" type="number" class="rating" min="0" max="5" step="0.5" data-size="sm"
                                           data-symbol="&#xe005;" data-default-caption="{rating} hearts" data-star-captions="{}">
                                       <!--  <input id="input-id" type="number" class="rating" min=0 max=5 step=0.5 data-size="lg" > -->
                                    </div>
                                </div>
                                <div class="row form-group">
                                      <label class="col-md-2 control-label" for="content">评论:</label>
                                      <div class="col-md-8" style="z-indx:1px;">
                                        <textarea ckeditor ng-model="content" class="form-control"></textarea>
                                      </div> 
                                </div>
                                
                                <div class="panel-footer text-center">
                                       <a  ng-click="commentBBS();" class="btn btn-info" id="sub1" value="发表">发表</a>
                                </div>
                           </div> <!-- class="well well-lg" -->
                         </div><!-- class="panel" end -->
                      </div>
                  </div>
              </div>
        </div>


      <div id="scoreboxbox" class="modal fade modal-blur" tabindex="-1" role="dialog" style="display:none;" >
           <div class="modal-dialog modal-lg">
               <div class="modal-content panel-info" style="width:600px;" >
                    <div class="modal-header panel-heading">
                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                         <h4 class="modal-title"><span class="label label-tag label-primary" style="font-size:16px;">评分知识库</span></h4>
                    </div>
                    <div class="modal-body">               
                             <div class="panel"> 
                               <div class="well well-lg"> <br />
                                <div class="row form-group">
                                    <label class="col-md-2 control-label" for="content">评分:</label>
                                    <div class="col-md-8" style="z-indx:1px;line-height:30px;;">
                                          <input id="input-2bc" type="number" class="rating" min="0" max="5" step="0.5" data-size="sm"
                                           data-symbol="&#xe005;" data-default-caption="{rating} hearts" data-star-captions="{}">
                                       <!--  <input id="input-id" type="number" class="rating" min=0 max=5 step=0.5 data-size="lg" > -->
                                    </div>
                                </div>
                                <div class="panel-footer text-center">
                                       <a  ng-click="scoreBBS();" class="btn btn-info" id="sub1" value="发表" ng-show="showCommentScore">发表</a>
                                       <!--  <a  class="btn btn-success" disable="true" id="sub1" value="发表" ng-show="!showCommentScore">发表1</a> -->
                                </div>
                           </div> <!-- class="well well-lg" -->
                         </div><!-- class="panel" end -->
                      </div>
                  </div>
              </div>
      </div>

      
      <!--评论知识库 start -->
      <div id="commentSolutions" class="modal fade modal-blur" tabindex="-1" role="dialog" style="display: none;">
            <div class="modal-dialog" style="width: 1100px;height: 700px;">
                  <div class="modal-content panel-success">
                        <div class="modal-header panel-heading">
                           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                           <h4 class="modal-title"><i class="fa  fa-heart-o"></i>评论知识库</h4>
                       </div>
                        <ul id="uidemo-tabs-default-demo" class="nav nav-tabs" style="margin-top: 20px">
                            <li ng-repeat="tab in commentSolution.tabs" ng-class="tab.active">
                            <a  data-toggle="tab"  ng-click="commentSolution.tabselect(tab.id);">{{tab.title}}</a>
                             </li>
                        </ul>

                        <div class="tab-content tab-content-bordered">  

                        <!--知识库详情 start-->
                          <div class="tab-pane fade" ng-class="commentSolution.tabs[0].divactive">
                          <div class="panel">
                             <div class="well well-lg">
                                      <br />
                                   <div class="row form-group">
                                         <!--label class="col-md-2 control-label">附件</label>
                                         <div class="col-md-4"> 
                                             <a  href="http://{{path}}/services/solution/download/{{entity.id}}">
                                                <img src="{{entity.filePic}}" >
                                              </a>
                                          </div--> 
                                          <label class="col-md-1 control-label"></label>
                                          <div class="col-md-5"></div>
                                          
                                          <label class="col-md-1 control-label" for="version">
                                              版本:
                                          </label>
                                          <div class="col-md-5">
                                               <input  id="vision" name="version" class="form-control disabled="true" "  ng-model="entity.vision" placeholder="版本" />

                                              <!--  <select  id="vision" class="form-control disabled"  
                                                  ng-model="entity.vision"  data-placeholder="选择版本">
                                                  <option></option>
                                                  <option ng-repeat="r in visions" value="{{r.id}}">V{{r.id}}</option>
                                               </select>  -->
                                          </div>  
                                 </div>
                                 <div class="row form-group">

                                      <label class="col-md-1 control-label" for="title">
                                              标题:
                                      </label>
                                      <div class="col-md-5">
                                          <input  id="title" name="title" class="form-control disabled"  ng-model="entity.title" placeholder="标题" />
                                      </div>

                                       <label class="col-md-1 control-label" for="keys">关键字:</label>
                                       <div class="col-md-5">
                                             <input  class="form-control disabled" id="keys" name="keys" class="form-control" ng-model="entity.keys" placeholder="关键字" />
                                       </div> 
                                 </div>


                              <div class="row form-group">
                                   <label class="col-md-1 control-label" for="type">分类:</label>
                                   <div class="col-md-5">
                                        <input  id="type" name="type" class="form-control disabled"  ng-model="entity.typeName" placeholder="分类"
                                            >  <!-- ng-click="doOnLoad('type');" data-toggle="modal" data-target="#typeboxbox" -->

                                   </div> 
                        
                                   <label class="col-md-1 control-label" for="range">使用范围:</label>
                                   <div class="col-md-5">
                                       <!--  <input id="range" name="range" class="form-control disabled"  ng-model="entity.range" placeholder="使用范围">  -->
                                        <select  id="range" class="form-control disabled"  
                                           ng-model="entity.range"  data-placeholder="选择使用范围">
                                                  <option>--请选择--</option>
                                                  <option ng-repeat="r in ranges" value="{{r.id}}">{{r.name}}</option>
                                          </select>  
                                  </div> 
                              </div>
                                   
                              <div class="row form-group">
                                      <label class="col-md-1 control-label" for="number">知识库编号:</label>
                                      <div class="col-md-8" style="z-indx:1px;">
                                            <input  id="number" name="number" class="form-control disabled"  ng-model="entity.number" placeholder="知识库编号"> 
                                      </div>             
                              </div>
                              
                              <div class="row form-group">
                                     <div class="col-xs-6 col-md-3"> 
                                          <div> <!-- class="col-xs-6 col-md-3  control-label" -->
                                              <label  for="content">知识库内容:</label>
                                          </div>
                                          <div><!-- class="col-md-2 control-label" -->
                                              <label>附件
                                                   <a  href="http://{{path}}/services/solution/download/{{entity.id}}">
                                                     <img src="assets/images/fj.gif" ><!-- {{entity.filePic}} -->
                                                   </a>
                                                   {{entity.fileName}}
                                              </label>
                                          </div>
                                      </div>
                                      
                                      <div class="col-md-8" style="z-indx:1px;">
                                        <textarea ckeditor ng-model="entity.content" class="form-control disabled"></textarea>
                                      </div>             
                              </div>
                          </div> <!-- class="well well-lg" -->
                         </div><!-- class="panel" end -->
                       </div>
                      <!--知识库详情 end-->

                        <!--查看评论 start-->
                         <div class="tab-pane fade {{commentSolution.tabs[1].divactive}}">
                             <div class="panel"> 
                               <div class="well well-lg"> <br />
                                  <div class="row form-group">
                                       <li ng-repeat="s in comments">
                                             <div class="col-md-8" style="z-indx:1px;">
                                                评论人：{{s.name}} | 发表于：{{s.time}}  | 评分：{{s.score}}
                                                <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" /> 
                                                评论： {{s.content}}
                                                <hr style="height: 1px; border:none; border-top:1px dashed black;" /> 
                                            </div> 
                                      </li>
                                </div>
                          </div> <!-- class="well well-lg" -->
                          </div><!-- class="panel" end -->
                        </div> <!--查看评论 end-->

                         
                         <!--评论知识库 start-->
                         <div class="tab-pane fade {{commentSolution.tabs[2].divactive}}">
                             <div class="panel"> 
                               <div class="well well-lg"> <br />
                                <div class="row form-group" ng-show="showCommentScore">
                                    <label class="col-md-2 control-label" for="content">评分:</label>
                                    <div class="col-md-8" style="z-indx:1px;line-height:30px;;">
                                          <input id="input-2ba" type="number" class="rating" min="0" max="5" step="0.5" data-size="sm"
                                           data-symbol="&#xe005;" data-default-caption="{rating} hearts" data-star-captions="{}">
                                       <!--  <input id="input-id" type="number" class="rating" min=0 max=5 step=0.5 data-size="lg" > -->
                                    </div>
                                </div>
                                <div class="row form-group">
                                      <label class="col-md-2 control-label" for="content">评论:</label>
                                      <div class="col-md-8" style="z-indx:1px;">
                                        <textarea ckeditor ng-model="reviewcontent" class="form-control"></textarea>
                                      </div> 
                                </div>
                                
                                <div class="panel-footer text-center">
                                       <a  ng-click="saveComment();" class="btn btn-success" id="sub1" value="发表">发表</a>
                                </div>
                           </div> <!-- class="well well-lg" -->
                         </div><!-- class="panel" end -->
                       </div> <!--评论知识库 end-->

                     
                    </div><!--tab-content-->
                  </div><!--modal content-->
                </div>
            </div> 
            <!--评论知识库 end-->   


  <!--搜索页面 start-->
  <div id="searchTemplate" class="modal fade modal-blur" tabindex="-1" role="dialog" style="display:none;" >
      <div class="modal-dialog  modal-lg"><!--  ng-controller="solctrl" -->
          <div class="modal-content" style="width:1000px;" >

            <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                  <h4 class="modal-title"><i class="fa  fa-users"></i>查找知识库</h4>
            </div>

            <div class="modal-body">               
                <div class="panel"> 
                  <div class="well well-lg"> <br />
                      <!--   <div id="content-wrapper">  --> 
                             <div class="page-header bg-primary">
                                <!--  <h1><span class="text-light-gray">知识库</span>查找</h1> -->
                              
                                   <!--  <form action="" class="search-form bg-primary"> -->
                                      <div class="input-group input-group-lg">
                                        <span class="input-group-addon no-background"><i class="fa fa-search"></i></span>
                                        <input type="text" name="s" id="searchSolutionInput"  class="form-control" placeholder="搜索...">
                                        <span class="input-group-btn">
                                          <button class="btn" ng-click="searchSolutionBtn();">搜索</button>
                                        </span>
                                      </div> 
                                   <!--  </form> -->
                               
                                <div class="pull-right">
                                    <div class="text-semibold text-light-gray text-sm">展现方式&nbsp;&nbsp;&nbsp;</div>
                                   <input type="checkbox" data-class="switcher-success" id="timeline-centered">
                                </div>
                            </div> 

                          <div class="timeline">
                            <!-- Timeline header -->
                            <div class="tl-header now bg-primary">开始</div>
                            <div ng-repeat="t in timeLineData |index">
                            
                            <div class="tl-entry" ng-show="{{t.order}}%2!=0">
                                <input type="hidden" id="timeId" value="{{t.id}}">
                                <div class="tl-time">创建人：{{t.createrUserName}}</div>
                                <div class="tl-icon bg-warning"><i class="fa fa-envelope"></i></div>
                                <div class="panel tl-body">
                                    <h4 class="text-warning" data-toggle="modal" data-target="#commentSolutions"   ng-click="findSolutionReviewByType('{{t.id}}');" >知识库名称：{{t.title}}</h4>
                                       附件名称： {{t.fileName}}
                                       <div class="well well-sm" style="margin: 10px 0 0 0;">
                                         知识库内容：{{t.content}}
                                       </div>
                                </div> <!-- / .tl-body -->
                            </div> <!-- / .tl-entry -->

                            <div class="tl-entry left" ng-show="{{t.order}}%2==0"> 
                                  <input type="hidden" id="timeId" value="{{t.id}}">
                                  <div class="tl-time">创建人：{{t.createrUserName}}</div>
                                  <div class="tl-icon bg-success"><i class="fa fa-picture-o"></i></div>
                                  <div class="panel tl-body">
                                       <h4 class="text-warning" data-toggle="modal" data-target="#commentSolutions"   ng-click="findSolutionReviewByType('{{t.id}}');">知识库名称：{{t.title}}</h4>
                                        附件名称：{{t.fileName}}
                                       <div class="well well-sm" style="margin: 10px 0 0 0;">
                                         知识库内容：{{t.content}}
                                       </div>
                                      <i class="text-muted text-sm">
                                      </i>
                                  </div> <!-- / .tl-body -->
                            </div> <!-- / .tl-entry -->
                            
                            </div>
                           

                          </div> <!-- / .timeline -->
                         <!--  </div> --> <!-- / #content-wrapper -->
                         <!-- <div class="text-center">
                          <div class="row pagination-demo">
                              <div class="col-sm-12">
                                <ul class="pagination">
                                  <li class="disabled"><a href="#">«</a></li>
                                  <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
                                  <li><a href="#">2</a></li>
                                  <li><a href="#">3</a></li>
                                  <li><a href="#">4</a></li>
                                  <li><a href="#">5</a></li>
                                  <li><a href="#">»</a></li>
                                </ul>
                              </div>
                         </div>
                      </div> -->
                    </div> <!-- class="well well-lg" -->
                  </div><!-- class="panel" end -->
                </div><!--class="modal-body"--> 

          </div><!-- class="modal-content"-->
       </div>
  </div>
  <!--/ .searchTemplate-->
</div>


















